<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五子棋</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div class="container">
        <h1 style="font-family: 'Ma Shan Zheng', cursive;">五子棋</h1>
        
        <!-- 游戏模式选择 -->
        <div class="game-mode">
            <button id="mode-toggle" class="mode-button">切换为人机对战</button>
            <div id="ai-settings" class="ai-settings" style="display: none;">
                <label for="ai-difficulty">AI难度：</label>
                <select id="ai-difficulty">
                    <option value="easy">简单</option>
                    <option value="medium" selected>中等</option>
                    <option value="hard">困难</option>
                </select>
            </div>
        </div>

        <!-- 得分板 -->
        <div class="score-board">
            <div class="score-card black">
                <div style="font-family: 'Ma Shan Zheng', cursive;">黑方得分</div>
                <div id="black-score">0</div>
            </div>
            <div class="score-card white"></div>
                <div style="font-family: 'Ma Shan Zheng', cursive;" id="white-player-name">白方得分</div>
                <div id="white-score">0</div>
            </div>
        </div>

        <div class="game-info">
            <div id="status" style="font-family: 'Ma Shan Zheng', cursive;">当前回合: 黑子</div>
            <button id="restart" style="font-family: 'Ma Shan Zheng', cursive;">重新开始</button>
        </div>
        
        <div id="board" class="board"></div>
    </div>

    <!-- 水墨风结算弹窗 -->
    <div id="game-over-modal" class="modal">
        <div class="modal-content">
            <!-- 水墨装饰元素 -->
            <div class="ink-decoration top-left"></div>
            <div class="ink-decoration top-right"></div>
            <div class="ink-decoration bottom-left"></div>
            <div class="ink-decoration bottom-right"></div>
            
            <h2>对局结束</h2>
            <div class="winner-container">
                <p id="winner-message"></p>
                <div class="ink-splash"></div>
            </div>
            <div class="modal-buttons">
                <button class="play-again">再来一局</button>
            </div>
        </div>
    </div>

    <script src="js/game.js"></script>
</body>
</html>